Skip to content

Add Kiro shell plugin#605

Merged
scottisloud merged 3 commits into
1Password:mainfrom
eddumelendez:kiro-support
Jun 17, 2026
Merged

Add Kiro shell plugin#605
scottisloud merged 3 commits into
1Password:mainfrom
eddumelendez:kiro-support

Conversation

@eddumelendez

@eddumelendez eddumelendez commented May 29, 2026

Copy link
Copy Markdown
Contributor

Overview

Adds a new Kiro shell plugin for authenticating the Kiro CLI with a Kiro API key. The plugin provisions and imports the documented KIRO_API_KEY environment variable for kiro-cli.

Type of change

  • Created a new plugin
  • Improved an existing plugin
  • Fixed a bug in an existing plugin
  • Improved contributor utilities or experience

Related Issue(s)

N/A

How To Test

To test authentication manually after initializing the plugin:

kiro-cli whoami

Changelog

Authenticate the Kiro CLI with API keys using 1Password Shell Plugins.

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
Copilot AI review requested due to automatic review settings May 29, 2026 05:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds initial 1Password shell plugin support for the Kiro CLI, including API key credential wiring and corresponding provision/import coverage.

Changes:

  • Introduces new kiro plugin entrypoint with platform metadata and wiring for credentials/executables.
  • Adds KIRO_API_KEY credential type with env var provisioner and env var importer.
  • Adds tests covering API key provisioning and importing behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
plugins/kiro/plugin.go Defines the Kiro plugin metadata and registers credential + executable.
plugins/kiro/kiro.go Declares the Kiro CLI executable schema and its credential usage.
plugins/kiro/api_key.go Implements the API key credential, docs/management links, and env var mapping.
plugins/kiro/api_key_test.go Adds tests for provisioning/importing KIRO_API_KEY.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/kiro/api_key.go
Comment thread plugins/kiro/plugin.go
Comment thread plugins/kiro/kiro.go
@scottisloud

Copy link
Copy Markdown
Contributor

Hi @eddumelendez
Thanks for the contribution! If you don't mind taking a look into the token validation criteria flagged by co-pilot, and if you can add prefix or length criteria in a relatively evergreen way, that's ideal, otherwise feel free to resolve the comment from co-pilot.

I hope to give this a review this week.

@scottisloud scottisloud self-requested a review June 17, 2026 16:07
@scottisloud scottisloud added the enhancement New feature or request label Jun 17, 2026

@scottisloud scottisloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I managed to find time for a review this morning.

The KIRO_API_KEY provisioning and import path matches Kiro's documented headless auth, and the tests cover the happy path well. All good there.

One minor blocker to address called out in a comment above.

optional: Circling back to Co-Pilot's note on the token validation criteria: It looks like the prefix and other criteria matches Kiro's docs. Happy for that Co-Pilot comment to be resolved without a length criteria.

I'll take another look once that's in. Thanks again, @eddumelendez.

Comment thread plugins/kiro/kiro.go Outdated
Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
@eddumelendez

Copy link
Copy Markdown
Contributor Author

@scottisloud comment was addressed

@eddumelendez eddumelendez requested a review from scottisloud June 17, 2026 19:01

@scottisloud scottisloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the submissions and the quick turnaround on the fixes!

LGTM!

This plugin should appear in a future release of the 1Password CLI.

@scottisloud scottisloud merged commit 2016770 into 1Password:main Jun 17, 2026
3 checks passed
@eddumelendez eddumelendez deleted the kiro-support branch June 17, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants